using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Database
{
    public class Prediction
    {
        #region Enums

        public enum ColumnName
        {
            None,
            ID,
            Ticker,
            Short_description,
            Long_description,
            Is_active,
            Has_succeeded,
            End_date,
            Is_closed,
            Last_value,
            Last_change
        }

        #endregion
        #region Variables

        public static string TABLE_NAME = "Prediction";

        private int _id;
        private string _ticker;
        private string _shortDescription;
        private string _longDescription;
        private bool _isActive;
        private bool _hasSucceeded;
        private DateTime _endDate;
        private bool _isClosed;
        private decimal _lastChange;
        private int _lastValue;

        #endregion
        #region Properties

        public DateTime EndDate
        {
            get { return _endDate; }
            set { _endDate = value; }
        }

        public bool HasSucceeded
        {
            get { return _hasSucceeded; }
            set { _hasSucceeded = value; }
        }

        public bool IsActive
        {
            get { return _isActive; }
            set { _isActive = value; }
        }

        public string LongDescription
        {
            get { return _longDescription; }
            set { _longDescription = value; }
        }

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string ShortDescription
        {
            get { return _shortDescription; }
            set { _shortDescription = value; }
        }

        public string Ticker
        {
            get { return _ticker; }
            set { _ticker = value; }
        }

        public bool IsClosed
        {
            get { return _isClosed; }
            set { _isClosed = value; }
        }

        public decimal LastChange
        {
            get { return _lastChange; }
            set { _lastChange = value; }
        }

        public int LastValue
        {
            get { return _lastValue; }
            set { _lastValue = value; }
        }

        #endregion
    }
}
